package thinkingInJava.YTool;

import java.io.PrintStream;

// 简易 print 类
// 在其它类 import static thinkingInJava.YTool.YPrint.*; 后,可以直接用如 print 当 System.out.print 来使用
public class YPrint {
	public static void print(String s){
		System.out.println(s);
	}
	public static void print(Object s){
		System.out.println(s);
	}
	public static void println(String s){
		System.out.println(s);
	}
	public static void println(Character s){
		System.out.println(s);
	}
	public static void println(boolean s){
		System.out.println(s);
	}
	public static void println(Object s){
		System.out.println(s);
	}
	public static void println(){
		System.out.println();
	}
	public static void printnb(String s){
		System.out.print(s);
	}
	public static void print(){
		System.out.println();
	}
	
	public static PrintStream printf(String format, Object ... args){
		return System.out.printf(format, args);
	}
}
